From 2c8d71cdf34df08bd5016ad20643584e57f8dae4 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Mon, 19 Feb 2007 15:51:46 +0000 Subject: [PATCH] hvm, vtpm: Fix wait for an outstanding response. Post the interrupt upon reception of the response and adapt the state machine. Signed-off-by: Stefan Berger --- tools/ioemu/hw/tpm_tis.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ioemu/hw/tpm_tis.c b/tools/ioemu/hw/tpm_tis.c index 926a697923..29bb14c942 100644 --- a/tools/ioemu/hw/tpm_tis.c +++ b/tools/ioemu/hw/tpm_tis.c @@ -769,6 +769,8 @@ static void tpm_save(QEMUFile* f,void* opaque) if (n > 0) { if (IS_VALID_LOC(s->active_loc)) { s->loc[s->active_loc].sts = STS_VALID | STS_DATA_AVAILABLE; + s->loc[s->active_loc].state = STATE_COMPLETION; + tis_raise_irq(s, s->active_loc, INT_DATA_AVAILABLE); } /* close the connection with the vTPM for good */ close_vtpm_channel(s, 1); -- 2.30.2